////import com.example.model.Policy_content;
//
//
////import org.apache.poi.hwpf.HWPFDocument;
////import org.apache.poi.hwpf.usermodel.CharacterRun;
////import org.apache.poi.hwpf.usermodel.Paragraph;
////import org.apache.poi.hwpf.usermodel.Range;
////import org.apache.poi.xwpf.usermodel.XWPFDocument;
////import org.apache.poi.xwpf.usermodel.XWPFParagraph;
//
//import java.io.FileInputStream;
//import java.io.FileNotFoundException;
//import java.io.IOException;
//import java.io.InputStream;
//import java.util.HashMap;
//import java.util.List;
//import java.util.Map;
//
//public class WordGetParagraph {
//    public static void main(String[] args) {
//        Map<String,String> mapResult = new HashMap<String, String>();
//        String path = "E:\\test\\a.doc";
//        try {
//            InputStream is = new FileInputStream(path);
//            HWPFDocument doc = new HWPFDocument(is);
//            Range range = doc.getRange();
//
//            String beginStr = "三、审计范围和对象";//二、审计目标
//            String endStr = "四、审计内容和重点";
//
//            int beginNum=0;
//            int endNum = 0;
//
//            for (int i = 0; i < range.numParagraphs()-1; i++) {
//                Paragraph para1 = range.getParagraph(i);
//                CharacterRun run1 = para1.getCharacterRun(0);
//
//                String paratext1 = para1.text().trim().replaceAll("\r\n", "");
//                if (paratext1!= null && beginStr!= null && paratext1.indexOf(beginStr)>-1){
//                    beginNum = i;
//                }
//                if (paratext1!= null && endStr!= null && paratext1.indexOf(endStr)>-1){
//                    endNum = i;
//                }
////                System.out.println(paratext1);
//            }
//            if (beginNum > 0){
//                String title = range.getParagraph(beginNum).text().trim();
//                StringBuffer text = new StringBuffer();
//                if (endNum >0){
//                    for (int i = beginNum+1; i < endNum; i++) {
//                        Paragraph paragraph = range.getParagraph(i);
//                        if (paragraph!= null){
//                            text.append(paragraph.text().trim()+"\n");
//                        }
//                    }
//                }
//                System.out.println("title:"+title);
////                Paragraph paragraph = range.getParagraph(beginNum+1);
//                System.out.println("==========================================");
////                System.out.println(paragraph.text().trim());
//                mapResult.put(title,text.toString());
//                System.out.println("text:"+text.toString());
//            }
//
//
////            for (XWPFParagraph parag:paragraphs
////            ) {
////                System.out.println(parag.getParagraphText());
////            }
//
//        } catch (Exception e) {
//            e.printStackTrace();
//        }
//    }
//    public static void spireParaghDoc(String path){
//
//    }
//}